import config from "@/config"
import http from "@/utils/request"

export default {
	approval:{
		list: {
			url: `${config.API_URL}/adminapi/office.office_apply/lists`,
			name: "获取列表",
			get: async function(data={}){
				return await http.get(this.url, data);
			}
		},
		edit: {
			url: `${config.API_URL}/adminapi/office.office_apply/edit`,
			name: "修改",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		add: {
			url: `${config.API_URL}/adminapi/office.office_apply/add`,
			name: "添加",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		delete: {
			url: `${config.API_URL}/adminapi/office.office_apply/delete`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
		detail: {
			url: `${config.API_URL}/adminapi/office.office_apply/detail`,
			name: "详情",
			get: async function(params){
				return await http.get(this.url, params);
			}
		},
		check_order: {
			url: `${config.API_URL}/adminapi/office.office_apply/check_order`,
			name: "删除",
			post: async function(data={}){
				return await http.post(this.url, data);
			}
		},
	}
}
